package kr.hkit.powerjava.chapter07.work;

import java.util.Scanner;

public class ReverseString {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.print("역순한 문자열을 입력하세요 : ");
		String std = input.next();
		try{		
		for(int i = std.length(); i >= 0 ; i--) {
			System.out.print(std.charAt(i-1));
		}		
		}catch (IndexOutOfBoundsException e) {}
	}

}
